package com.zb.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zb.entity.ZjNetworkEmpAuthenFieldValOption;
import com.zb.mapper.ZjNetworkEmpAuthenFieldValOptionMapper;
import com.zb.service.ZjNetworkEmpAuthenFieldValOptionService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 网点人员认证字段值内容表 服务实现类
 * </p>
 *
 * @author WEN
 * @since 2024-02-01
 */
@Service
public class ZjNetworkEmpAuthenFieldValOptionServiceImpl extends ServiceImpl<ZjNetworkEmpAuthenFieldValOptionMapper, ZjNetworkEmpAuthenFieldValOption> implements ZjNetworkEmpAuthenFieldValOptionService {

    // 根据商家ID & 工程师ID删除
    @Override
    public void deleteByCustAccIdAndNeworkEmpId(Long custAccId, Long networkEmpId) {
        QueryWrapper<ZjNetworkEmpAuthenFieldValOption> wrapper = new QueryWrapper<>();
        wrapper.eq("cust_acc_id", custAccId).eq("network_emp_id", networkEmpId);
        this.remove(wrapper);
    }
}
